﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MetadataBasedConfig.EntityModel;
using System.Configuration;

namespace MetadataBasedConfig.Web
{
    public static class Util
    {
        public static readonly string ConnectionString = ConfigurationManager.ConnectionStrings["MDAEntities"].ConnectionString;

        public static readonly MDAEntities Entities = Create();

        public static MDAEntities Create()
        {
            return new MDAEntities(ConnectionString);
        }
    }
}